package com.bolt.report.annotation;

import com.bolt.report.definition.Align;
import com.bolt.report.definition.PaperType;
import com.bolt.report.definition.PrintOrder;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface Paper {
    //页面宽(毫米)
    int width() default 210;

    //页面高(毫米)
    int height() default 297;

    PaperType size() default PaperType.A4;

    String margin() default "10,10,10,10";

    int columnHeaderHeight() default 30;

    Style columnHeaderStyle() default @Style(fontSize=12,align= Align.center,valign = Align.middle,bgColor = "#A676FA",foreColor = "#FFFFFF");

    int rowHeight() default 25;

    PrintOrder pageOrder() default PrintOrder.VERTICAL;
}